/**
* This file is part of mobileworks.
*
* mobileworks is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* You should have received a copy of the GNU General Public License
* along with dev.clipall.  If not, see <http://www.gnu.org/licenses/>.
*
* https://code.google.com/p/mobileworks/
*/

package base;

import view.Constants;

/**
 *
 * @author Erol Hira
 */
public class Settings {
    
    public static byte deviceId;
    
    public static int LEFT_CTRL;
    public static int RIGHT_CTRL;
    
    //--------------------------------------------------------------------
        
    // must be called after deviceId is set
    public static void setCtrlKeys(){
        LEFT_CTRL = Constants.CTRL_KEYS[deviceId][0];
        RIGHT_CTRL = Constants.CTRL_KEYS[deviceId][1];
    }
    
    public static void setDeviceSpecificProperties(byte deviceId){
        Settings.deviceId = deviceId;
        setCtrlKeys();
    }
    
    //--------------------------------------------------------------------
        
}
